package com.wkbb.common.enums;

/**
 * @author lizhichao
 * @date 2019/11/17
 * @description
 */
public enum OrderOriginEnum {

    /**
     * 1,微信支付
     */
    WX(1,"微信支付"),
    /**
     * 2，小鹅通
     */
    XET(2,"小鹅通"),
    /**
     * 3，线下
     */
    UNDERLINE(3,"线下");


    private OrderOriginEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (OrderOriginEnum payTypeEnum : OrderOriginEnum.values()) {
            if (payTypeEnum.getValue().intValue()==value) {
                return payTypeEnum.getDesc();
            }
        }
        return null;
    }
    
}
